how to override a property in object